/*
 * @Descripttion: 后台管理系统
 * @version: 1.0
 * @Author: 狸猫
 * @Date: 2023-11-27 15:56:18
 * @LastEditors: 狸猫
 * @LastEditTime: 2023-12-18 11:26:57
 */
import request from '@/utils/request'


// 统计订单各个状态的数量
export function countOrderState(query) {
  return request({
    url: '/enterprise/order/order/countOrderState',
    method: 'get',
    params: query
  })
}
// 查询订单列表
export function listOrder(query) {
  return request({
    url: '/enterprise/order/order/list',
    method: 'get',
    params: query,
  })
}


// 订单换房
export function changeHouse(data) {
  return request({
    url: '/enterprise/order/order/changeHouse',
    method: 'post',
    data: data
  })
}

// 修改预定时间
export function updateReservationInfo(data) {
  return request({
    url: '/enterprise/order/order/updateReservationInfo',
    method: 'post',
    data: data
  })
}

// 查询房间详情
export function getOrder(orderId) {
  return request({
    url: '/enterprise/order/order/' + orderId,
    method: 'get'
  })
}





